package articles.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@SuppressWarnings("serial")
public class GoogleSearchServlet extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		resp.setContentType("text/plain");
		
		//seo
		req.setAttribute("seo_title", "Search articles");
		req.setAttribute("seo_description", "If you are interested in a high value alternative to buying a brand new car, a used car can be the best option for you. Used cars have a stabilised rate of depreciation that");
		req.setAttribute("title", "Search articles");
		req.setAttribute("description", "Search articles.Free articles provided by yooarticles.com - your free articles directory. Find free online articles for your website, eZine or newsletters. Submit your Articles for free syndication and publication.");
		req.setAttribute("keyword", "yooarticles.com,submit free article,article,articles");
		
		try {
			req.getRequestDispatcher("/googlesearch.jsp").forward(req, resp);
		} catch (ServletException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
